package entity

type Api struct {
	ID int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	Path string `gorm:"column:path;type:VARCHAR(255)" json:"path"`

	Description string `gorm:"column:description;type:VARCHAR(255)" json:"description"`

	ApiGroup string `gorm:"column:api_group;type:VARCHAR(255)" json:"api_group"`

	Method string `gorm:"column:method;type:VARCHAR(255)" json:"method"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *Api) TableName() string {
	return "apis"
}
